import React, { Component } from 'react';
class HotList extends Component {
    constructor(){
        super()
        this.state = {}
    }
   
    render() {
        return (<>
            <div className='hot'>
                <span>百度热搜</span>
                <span>换一换</span>
            </div>
            <div className='hotlist'>
                <ul >
                    {
                        this.props.list.map((item, index) => {
                            return (
                                <li key={index}>
                                    {item.name}
                                </li>
                            )
                        }

                        )
                    }
                </ul>
            </div>
        </>);
    }
}

export default HotList;